package com.well.rpc.model;

import lombok.Data;
import lombok.Getter;

/**
 * <p>
 * code info
 * </p>
 *
 * @author weedo
 * @since 2022/7/31
 */
@Getter
public enum CodeInfo {
    CHANNEL_NOT_HEALTH("10001", "Channel is not healthy!"),
    CRON_EXPRESSION_ERROR("20001", "Job %s, cronExpression error: %s"),
    ;

    String code;
    String msg;

    CodeInfo(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
